home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
dfpp01.zip
/
CONTROL.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-10
|
865b
|
35 lines
// ------------ control.cpp
#include "control.h"
#include "desktop.h"
void Control::Keyboard(int key)
{
DFWindow *Wnd;
switch (key) {
case UP:
Wnd = desktop.InFocus();
do {
PrevSiblingFocus();
if (Wnd == desktop.InFocus())
break;
} while (desktop.InFocus()->WindowType() == MenubarWindow);
break;
case '\t':
case DN:
case ALT_F6:
Wnd = desktop.InFocus();
do {
NextSiblingFocus();
if (Wnd == desktop.InFocus())
break;
} while (desktop.InFocus()->WindowType() ==
MenubarWindow);
break;
default:
DFWindow::Keyboard(key);
break;
}
}